import { createRequest } from '/@/api/service';
const module = '/ib/meeting/v1/meetingInfoApi/';
/**
 * 会议室信息查询(app端)
 */
function MEETING_INFO_QUERY_APP(
  data: MeetingInfoApi.MeetingInfoReq,
  header: object = {},
): Promise<MeetingInfoApi.MeetingInfoResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}meetingInfoQueryApp`,
    data,
    header,
    'POST',
  );
}

/**
 * 会议室预约（app）
 * @param data
 * @param header
 * @returns
 */
function MEETING_INFO_APPOINTMENT(
  data: MeetingInfoApi.MeetingInfoAppointmentReq,
  header: object = {},
): Promise<MeetingInfoApi.MeetingInfoAppointmentResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}meetingInfoAppointment`,
    data,
    header,
    'POST',
  );
}

export { MEETING_INFO_QUERY_APP, MEETING_INFO_APPOINTMENT };
